<template>
  <div id="app">
    <AuthMenu
      :initMenuData="menu"
      :initCheckedButtons="initCheckedButtons"
      :initCheckedMenus="initCheckedMenus"
      @updateMenuAndButtons="updateMenuAndButtons"
    />
  </div>
</template>
<script>
import { menu, initCheckedButtons, initCheckedMenus } from './views/data'
import AuthMenu from './views/AuthMenu.vue'
export default {
  name: 'App',
  components: {
    AuthMenu,
  },
  data() {
    return {
      menu,
      initCheckedButtons,
      initCheckedMenus
    }
  },
  methods: {
    updateMenuAndButtons(data) {
      console.log('获取到选中的菜单和按钮', data);
    }
  },
}
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
